<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>Kinetis Bootloader: serial_packet.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="nxp_logo_small.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Kinetis Bootloader
   &#160;<span id="projectnumber">2.0.0</span>
   </div>
   <div id="projectbrief">Common bootloader for Kinetis devices</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Introduction</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('serial__packet_8h_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">serial_packet.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Copyright (c) 2013, Freescale Semiconductor, Inc.</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> * All rights reserved.</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * Redistribution and use in source and binary forms, with or without modification,</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * are permitted provided that the following conditions are met:</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> * o Redistributions of source code must retain the above copyright notice, this list</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> *   of conditions and the following disclaimer.</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * o Redistributions in binary form must reproduce the above copyright notice, this</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> *   list of conditions and the following disclaimer in the documentation and/or</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> *   other materials provided with the distribution.</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> * o Neither the name of Freescale Semiconductor, Inc. nor the names of its</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> *   contributors may be used to endorse or promote products derived from this</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> *   software without specific prior written permission.</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS &quot;AS IS&quot; AND</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"> * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment"> * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment"> * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment"> * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="comment"> * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="comment"> * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT</span></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="comment"> * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS</span></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="comment"> * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</span></div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor">#ifndef _packet_h</span></div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="preprocessor">#define _packet_h</span></div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="preprocessor">#include &quot;bootloader_common.h&quot;</span></div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="preprocessor">#include &quot;bootloader/bl_peripheral.h&quot;</span></div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="preprocessor">#include &quot;property/property.h&quot;</span></div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="comment">// Declarations</span></div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="group__packet.html#ga012b8bb615153c433c06843e404084b0">   47</a></span>&#160;<span class="keyword">enum</span> <a class="code" href="group__packet.html#ga012b8bb615153c433c06843e404084b0">_serial_protocol_version_constants</a></div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;{</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;    kSerialProtocol_Version_Name = <span class="charliteral">&#39;P&#39;</span>,</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    kSerialProtocol_Version_Major = 1,</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;    kSerialProtocol_Version_Minor = 2,</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;    kSerialProtocol_Version_Bugfix = 0</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;};</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;</div><div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="group__packet.html#ga62b42db1f8bbcdcd1a9e28220ee4627e">   56</a></span>&#160;<span class="keyword">enum</span> <a class="code" href="group__packet.html#ga62b42db1f8bbcdcd1a9e28220ee4627e">_framing_packet_constants</a></div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;{</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    kFramingPacketStartByte = 0x5a,</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;    kFramingPacketType_Ack = 0xa1,</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    kFramingPacketType_Nak = 0xa2,</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    kFramingPacketType_AckAbort = 0xa3,</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    kFramingPacketType_Command = 0xa4,</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;    kFramingPacketType_Data = 0xa5,</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;    kFramingPacketType_Ping = 0xa6,</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;    kFramingPacketType_PingResponse = 0xa7</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;};</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;</div><div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="group__packet.html#ga2c66f7e3d2dacb6bf4f217f66e60ed00">   69</a></span>&#160;<span class="keyword">enum</span> <a class="code" href="group__packet.html#ga2c66f7e3d2dacb6bf4f217f66e60ed00">_timing_constants</a></div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;{</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;    kHostMaxStartByteReadCount = 2,</div><div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="group__packet.html#gga2c66f7e3d2dacb6bf4f217f66e60ed00ad24537294d9e3209afa42a1ee7081f4d">   72</a></span>&#160;    <a class="code" href="group__packet.html#gga2c66f7e3d2dacb6bf4f217f66e60ed00ad24537294d9e3209afa42a1ee7081f4d">kDefaultByteReadTimeoutMs</a> = 10, </div><div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="group__packet.html#gga2c66f7e3d2dacb6bf4f217f66e60ed00a54286149a8cc228b9668daf91c21dfda">   73</a></span>&#160;    <a class="code" href="group__packet.html#gga2c66f7e3d2dacb6bf4f217f66e60ed00a54286149a8cc228b9668daf91c21dfda">kCallbackBufferSize</a> = 64        </div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;};</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;</div><div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="group__packet.html#gac4680247a99210ad5bb3e2dfb634dfd3">   77</a></span>&#160;<span class="keyword">enum</span> <a class="code" href="group__packet.html#gac4680247a99210ad5bb3e2dfb634dfd3">_serial_packet_constants</a></div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;{</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;    kIncomingPacketBufferSize = kMinPacketBufferSize,</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    kOutgoingPacketBufferSize = kMinPacketBufferSize</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;};</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;</div><div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="group__packet.html#ga2a8f13fe838021db8eeaf217ff17a9db">   84</a></span>&#160;<span class="keyword">enum</span> <a class="code" href="group__packet.html#ga2a8f13fe838021db8eeaf217ff17a9db">_serial_packet_mode</a></div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;{</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;    kSerialModeCmd,</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;    kSerialModeAck,</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;    kSerialModeIdle</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;};</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;</div><div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="group__packet.html">   92</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span>FramingHeader</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;{</div><div class="line"><a name="l00094"></a><span class="lineno"><a class="line" href="group__packet.html#ab4c033cfd9a05c4c5c8688fcb22f88bc">   94</a></span>&#160;    uint8_t <a class="code" href="group__packet.html#ab4c033cfd9a05c4c5c8688fcb22f88bc">startByte</a>;  </div><div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="group__packet.html#a561dfa675631ea8122a078d1243325c4">   95</a></span>&#160;    uint8_t <a class="code" href="group__packet.html#a561dfa675631ea8122a078d1243325c4">packetType</a>; </div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;} <a class="code" href="group__packet.html#structframing__header__t">framing_header_t</a>;</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;</div><div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="group__packet.html">   99</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span>FramingSyncPacket</div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;{</div><div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="group__packet.html#af0714a84f43a75ea5ed6219503f35df8">  101</a></span>&#160;    <a class="code" href="group__packet.html#structframing__header__t">framing_header_t</a> <a class="code" href="group__packet.html#af0714a84f43a75ea5ed6219503f35df8">header</a>; </div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;} <a class="code" href="group__packet.html#structframing__sync__packet__t">framing_sync_packet_t</a>;</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;<span class="preprocessor">#pragma pack(1)</span></div><div class="line"><a name="l00106"></a><span class="lineno"><a class="line" href="group__packet.html">  106</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span>FramingDataPacket</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;{</div><div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="group__packet.html#af0714a84f43a75ea5ed6219503f35df8">  108</a></span>&#160;    <a class="code" href="group__packet.html#structframing__header__t">framing_header_t</a> <a class="code" href="group__packet.html#af0714a84f43a75ea5ed6219503f35df8">header</a>; </div><div class="line"><a name="l00109"></a><span class="lineno"><a class="line" href="group__packet.html#a1892eba2086d12ac2b09005aeb09ea3b">  109</a></span>&#160;    uint16_t <a class="code" href="group__packet.html#a1892eba2086d12ac2b09005aeb09ea3b">length</a>;         </div><div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="group__packet.html#a4438e0df9f58b1861feb3fc659f52534">  110</a></span>&#160;    uint16_t <a class="code" href="group__packet.html#a4438e0df9f58b1861feb3fc659f52534">crc16</a>;          </div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;} <a class="code" href="group__packet.html#structframing__data__packet__t">framing_data_packet_t</a>;</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;<span class="preprocessor">#pragma pack()</span></div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;</div><div class="line"><a name="l00115"></a><span class="lineno"><a class="line" href="group__packet.html">  115</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span>SerialFramingPacket</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;{</div><div class="line"><a name="l00117"></a><span class="lineno"><a class="line" href="group__packet.html#a524a284dbe72b32a1aef8e6c6c757a75">  117</a></span>&#160;    <a class="code" href="group__packet.html#structframing__data__packet__t">framing_data_packet_t</a> <a class="code" href="group__packet.html#a524a284dbe72b32a1aef8e6c6c757a75">dataPacket</a>;        </div><div class="line"><a name="l00118"></a><span class="lineno"><a class="line" href="group__packet.html#a7a29f09589feb930ce1a84b4de3b7277">  118</a></span>&#160;    uint8_t data[kOutgoingPacketBufferSize]; </div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;} <a class="code" href="group__packet.html#structserial__framing__packet__t">serial_framing_packet_t</a>;</div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;</div><div class="line"><a name="l00122"></a><span class="lineno"><a class="line" href="group__packet.html">  122</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span>SerialData</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;{</div><div class="line"><a name="l00124"></a><span class="lineno"><a class="line" href="group__packet.html#a92ca89deeb2d4578b7bd7e48c89cec05">  124</a></span>&#160;    uint8_t data[kIncomingPacketBufferSize]; </div><div class="line"><a name="l00125"></a><span class="lineno"><a class="line" href="group__packet.html#a65676b604781a2626dae0b43c714b81a">  125</a></span>&#160;    uint8_t callbackBuffer[<a class="code" href="group__packet.html#gga2c66f7e3d2dacb6bf4f217f66e60ed00a54286149a8cc228b9668daf91c21dfda">kCallbackBufferSize</a>]; </div><div class="line"><a name="l00126"></a><span class="lineno"><a class="line" href="group__packet.html#ae9b2f6d232d100f9b461c7df295be3f7">  126</a></span>&#160;    <a class="code" href="group__packet.html#structserial__framing__packet__t">serial_framing_packet_t</a> <a class="code" href="group__packet.html#ae9b2f6d232d100f9b461c7df295be3f7">framingPacket</a>;       </div><div class="line"><a name="l00127"></a><span class="lineno"><a class="line" href="group__packet.html#a0b5561925426675ee11f2354f6c642a7">  127</a></span>&#160;    <span class="keyword">volatile</span> uint32_t <a class="code" href="group__packet.html#a0b5561925426675ee11f2354f6c642a7">writeOffset</a>;               </div><div class="line"><a name="l00128"></a><span class="lineno"><a class="line" href="group__packet.html#ad10650a4450582b790561e4435212b23">  128</a></span>&#160;    uint32_t <a class="code" href="group__packet.html#ad10650a4450582b790561e4435212b23">readOffset</a>;                         </div><div class="line"><a name="l00129"></a><span class="lineno"><a class="line" href="group__packet.html#a830a82b5d823e4db64c763378be77335">  129</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="group__packet.html#a830a82b5d823e4db64c763378be77335">isAckNeeded</a>;                            </div><div class="line"><a name="l00130"></a><span class="lineno"><a class="line" href="group__packet.html#a394c0a96243ccf6fa1a0e19fe956cd33">  130</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="group__packet.html#a394c0a96243ccf6fa1a0e19fe956cd33">isBackToBackWrite</a>;                      </div><div class="line"><a name="l00131"></a><span class="lineno"><a class="line" href="group__packet.html#a3496667f52b5f8cd8e34381108268e0a">  131</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="group__packet.html#a3496667f52b5f8cd8e34381108268e0a">isAckAbortNeeded</a>;                       </div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;} <a class="code" href="group__packet.html#structserial__data__t">serial_data_t</a>;</div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;</div><div class="line"><a name="l00137"></a><span class="lineno"><a class="line" href="group__packet.html">  137</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span>PingResponse</div><div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;{</div><div class="line"><a name="l00139"></a><span class="lineno"><a class="line" href="group__packet.html#ab5805c535f737e9a32670f5a45b50add">  139</a></span>&#160;    <a class="code" href="group__bl__core.html#unionstandard__version__t">standard_version_t</a> <a class="code" href="group__packet.html#ab5805c535f737e9a32670f5a45b50add">version</a>; </div><div class="line"><a name="l00140"></a><span class="lineno"><a class="line" href="group__packet.html#af86bc430f5b8c737809e0e3baae4ecea">  140</a></span>&#160;    uint16_t <a class="code" href="group__packet.html#af86bc430f5b8c737809e0e3baae4ecea">options</a>;           </div><div class="line"><a name="l00141"></a><span class="lineno"><a class="line" href="group__packet.html#a4438e0df9f58b1861feb3fc659f52534">  141</a></span>&#160;    uint16_t <a class="code" href="group__packet.html#a4438e0df9f58b1861feb3fc659f52534">crc16</a>;             </div><div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;} <a class="code" href="group__packet.html#structping__response__t">ping_response_t</a>;</div><div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;</div><div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;<span class="comment">// Externs</span></div><div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;<span class="keyword">extern</span> <span class="keyword">const</span> <a class="code" href="group__peripheral.html#structperipheral__packet__interface__t">peripheral_packet_interface_t</a> g_framingPacketInterface;</div><div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;</div><div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;<span class="comment">// Prototypes</span></div><div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;<span class="preprocessor">#if defined(__cplusplus)</span></div><div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;<span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {</div><div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;<span class="preprocessor">#endif // __cplusplus</span></div><div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;</div><div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;<a class="code" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a> <a class="code" href="group__packet.html#ga3707af76120e3f97302536c0615f7add">serial_packet_init</a>(<span class="keyword">const</span> peripheral_descriptor_t *<span class="keyword">self</span>);</div><div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;</div><div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;<a class="code" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a> <a class="code" href="group__packet.html#gaec8900ed4ea5a3c981d66dab38516643">serial_packet_read</a>(<span class="keyword">const</span> peripheral_descriptor_t *<span class="keyword">self</span>,</div><div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;                            uint8_t **packet,</div><div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;                            uint32_t *packetLength,</div><div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;                            <a class="code" href="group__peripheral.html#ga864fc0d1fbad74e37628f58051c8e3f7">packet_type_t</a> packetType);</div><div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;</div><div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;<a class="code" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a> <a class="code" href="group__packet.html#ga7bcf4e62f6cbc2ab39c1666c1d5e752a">serial_packet_write</a>(<span class="keyword">const</span> peripheral_descriptor_t *<span class="keyword">self</span>,</div><div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;                             <span class="keyword">const</span> uint8_t *packet,</div><div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;                             uint32_t byteCount,</div><div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;                             <a class="code" href="group__peripheral.html#ga864fc0d1fbad74e37628f58051c8e3f7">packet_type_t</a> packetType);</div><div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;</div><div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__packet.html#ga1a60f41326f758000304976fd18d65a2">serial_packet_abort</a>(<span class="keyword">const</span> peripheral_descriptor_t *<span class="keyword">self</span>);</div><div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;</div><div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;<a class="code" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a> <a class="code" href="group__packet.html#ga68e805a1882eb220f1ddd9a08c26030b">serial_packet_finalize</a>(<span class="keyword">const</span> peripheral_descriptor_t *<span class="keyword">self</span>);</div><div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;</div><div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;uint32_t <a class="code" href="group__packet.html#ga598a287b57672291406cff9c728e03f9">serial_packet_get_max_packet_size</a>(<span class="keyword">const</span> peripheral_descriptor_t *<span class="keyword">self</span>);</div><div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;</div><div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;<a class="code" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a> <a class="code" href="group__packet.html#gab0420ede400b98b1c21a7a7713b57633">serial_packet_send_sync</a>(uint8_t framingPacketType);</div><div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;</div><div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;<a class="code" href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a> <a class="code" href="group__packet.html#gabb5327f7eac946ecd5bf73b12565a502">serial_send_ping_response</a>(<span class="keyword">const</span> peripheral_descriptor_t *peripheral);</div><div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;</div><div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group__packet.html#ga88407143978559f83d7115b86dc876be">serial_packet_queue_byte</a>(uint8_t byte);</div><div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;</div><div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;<span class="preprocessor">#if defined(BOOTLOADER_HOST)</span></div><div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;<span class="keywordtype">void</span> host_delay(uint32_t milliseconds);</div><div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;<span class="preprocessor">#endif // BOOTLOADER_HOST</span></div><div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;</div><div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;<span class="preprocessor">#if defined(__cplusplus)</span></div><div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;}</div><div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;<span class="preprocessor">#endif // __cplusplus</span></div><div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;</div><div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;</div><div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;<span class="preprocessor">#endif // _packet_h</span></div><div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;<span class="comment">// EOF</span></div><div class="ttc" id="group__packet_html_ga598a287b57672291406cff9c728e03f9"><div class="ttname"><a href="group__packet.html#ga598a287b57672291406cff9c728e03f9">serial_packet_get_max_packet_size</a></div><div class="ttdeci">uint32_t serial_packet_get_max_packet_size(const peripheral_descriptor_t *self)</div><div class="ttdoc">Get max packet size. </div><div class="ttdef"><b>Definition:</b> serial_packet.c:265</div></div>
<div class="ttc" id="group__packet_html_ga1a60f41326f758000304976fd18d65a2"><div class="ttname"><a href="group__packet.html#ga1a60f41326f758000304976fd18d65a2">serial_packet_abort</a></div><div class="ttdeci">void serial_packet_abort(const peripheral_descriptor_t *self)</div><div class="ttdoc">Abort data phase. </div><div class="ttdef"><b>Definition:</b> serial_packet.c:257</div></div>
<div class="ttc" id="group__packet_html_a1892eba2086d12ac2b09005aeb09ea3b"><div class="ttname"><a href="group__packet.html#a1892eba2086d12ac2b09005aeb09ea3b">framing_data_packet_t::length</a></div><div class="ttdeci">uint16_t length</div><div class="ttdoc">Number of data bytes that follow. </div><div class="ttdef"><b>Definition:</b> serial_packet.h:109</div></div>
<div class="ttc" id="group__packet_html_ga62b42db1f8bbcdcd1a9e28220ee4627e"><div class="ttname"><a href="group__packet.html#ga62b42db1f8bbcdcd1a9e28220ee4627e">_framing_packet_constants</a></div><div class="ttdeci">_framing_packet_constants</div><div class="ttdoc">Serial framing packet constants. </div><div class="ttdef"><b>Definition:</b> serial_packet.h:56</div></div>
<div class="ttc" id="group__packet_html_ad10650a4450582b790561e4435212b23"><div class="ttname"><a href="group__packet.html#ad10650a4450582b790561e4435212b23">serial_data_t::readOffset</a></div><div class="ttdeci">uint32_t readOffset</div><div class="ttdoc">The offset into the buffer that the app has read out. </div><div class="ttdef"><b>Definition:</b> serial_packet.h:128</div></div>
<div class="ttc" id="group__packet_html_ab5805c535f737e9a32670f5a45b50add"><div class="ttname"><a href="group__packet.html#ab5805c535f737e9a32670f5a45b50add">ping_response_t::version</a></div><div class="ttdeci">standard_version_t version</div><div class="ttdoc">Serial framing protocol version. </div><div class="ttdef"><b>Definition:</b> serial_packet.h:139</div></div>
<div class="ttc" id="group__peripheral_html_ga864fc0d1fbad74e37628f58051c8e3f7"><div class="ttname"><a href="group__peripheral.html#ga864fc0d1fbad74e37628f58051c8e3f7">packet_type_t</a></div><div class="ttdeci">packet_type_t</div><div class="ttdoc">Packet types. </div><div class="ttdef"><b>Definition:</b> bl_peripheral.h:94</div></div>
<div class="ttc" id="group__packet_html_gaec8900ed4ea5a3c981d66dab38516643"><div class="ttname"><a href="group__packet.html#gaec8900ed4ea5a3c981d66dab38516643">serial_packet_read</a></div><div class="ttdeci">status_t serial_packet_read(const peripheral_descriptor_t *self, uint8_t **packet, uint32_t *packetLength, packet_type_t packetType)</div><div class="ttdoc">Read packet using serial framing. </div><div class="ttdef"><b>Definition:</b> serial_packet.c:129</div></div>
<div class="ttc" id="group__packet_html_a561dfa675631ea8122a078d1243325c4"><div class="ttname"><a href="group__packet.html#a561dfa675631ea8122a078d1243325c4">framing_header_t::packetType</a></div><div class="ttdeci">uint8_t packetType</div><div class="ttdoc">Framing packet type. </div><div class="ttdef"><b>Definition:</b> serial_packet.h:95</div></div>
<div class="ttc" id="group__packet_html_a830a82b5d823e4db64c763378be77335"><div class="ttname"><a href="group__packet.html#a830a82b5d823e4db64c763378be77335">serial_data_t::isAckNeeded</a></div><div class="ttdeci">bool isAckNeeded</div><div class="ttdoc">True if need to send ACK to previously received packet. </div><div class="ttdef"><b>Definition:</b> serial_packet.h:129</div></div>
<div class="ttc" id="group__packet_html_gga2c66f7e3d2dacb6bf4f217f66e60ed00a54286149a8cc228b9668daf91c21dfda"><div class="ttname"><a href="group__packet.html#gga2c66f7e3d2dacb6bf4f217f66e60ed00a54286149a8cc228b9668daf91c21dfda">kCallbackBufferSize</a></div><div class="ttdoc">Size for callback buffer, Must be power of 2 for easy wrap. </div><div class="ttdef"><b>Definition:</b> serial_packet.h:73</div></div>
<div class="ttc" id="group__packet_html_ga2c66f7e3d2dacb6bf4f217f66e60ed00"><div class="ttname"><a href="group__packet.html#ga2c66f7e3d2dacb6bf4f217f66e60ed00">_timing_constants</a></div><div class="ttdeci">_timing_constants</div><div class="ttdoc">Timeout and other constants. </div><div class="ttdef"><b>Definition:</b> serial_packet.h:69</div></div>
<div class="ttc" id="group__packet_html_a524a284dbe72b32a1aef8e6c6c757a75"><div class="ttname"><a href="group__packet.html#a524a284dbe72b32a1aef8e6c6c757a75">serial_framing_packet_t::dataPacket</a></div><div class="ttdeci">framing_data_packet_t dataPacket</div><div class="ttdoc">Packet header. </div><div class="ttdef"><b>Definition:</b> serial_packet.h:117</div></div>
<div class="ttc" id="group__packet_html_gabb5327f7eac946ecd5bf73b12565a502"><div class="ttname"><a href="group__packet.html#gabb5327f7eac946ecd5bf73b12565a502">serial_send_ping_response</a></div><div class="ttdeci">status_t serial_send_ping_response(const peripheral_descriptor_t *peripheral)</div><div class="ttdoc">Send a ping message back in response to a ping. </div><div class="ttdef"><b>Definition:</b> serial_packet.c:335</div></div>
<div class="ttc" id="group__packet_html_ga3707af76120e3f97302536c0615f7add"><div class="ttname"><a href="group__packet.html#ga3707af76120e3f97302536c0615f7add">serial_packet_init</a></div><div class="ttdeci">status_t serial_packet_init(const peripheral_descriptor_t *self)</div><div class="ttdoc">Initialize component. </div><div class="ttdef"><b>Definition:</b> serial_packet.c:117</div></div>
<div class="ttc" id="group__packet_html_a0b5561925426675ee11f2354f6c642a7"><div class="ttname"><a href="group__packet.html#a0b5561925426675ee11f2354f6c642a7">serial_data_t::writeOffset</a></div><div class="ttdeci">volatile uint32_t writeOffset</div><div class="ttdoc">The offset into the buffer that the ISR will queue data into. </div><div class="ttdef"><b>Definition:</b> serial_packet.h:127</div></div>
<div class="ttc" id="group__packet_html_structframing__data__packet__t"><div class="ttname"><a href="group__packet.html#structframing__data__packet__t">framing_data_packet_t</a></div><div class="ttdoc">Serial framing data packet. </div><div class="ttdef"><b>Definition:</b> serial_packet.h:106</div></div>
<div class="ttc" id="group__peripheral_html_structperipheral__packet__interface__t"><div class="ttname"><a href="group__peripheral.html#structperipheral__packet__interface__t">peripheral_packet_interface_t</a></div><div class="ttdoc">Peripheral Packet Interface. </div><div class="ttdef"><b>Definition:</b> bl_peripheral.h:101</div></div>
<div class="ttc" id="group__packet_html_gac4680247a99210ad5bb3e2dfb634dfd3"><div class="ttname"><a href="group__packet.html#gac4680247a99210ad5bb3e2dfb634dfd3">_serial_packet_constants</a></div><div class="ttdeci">_serial_packet_constants</div><div class="ttdoc">Incoming data buffer allocation size. </div><div class="ttdef"><b>Definition:</b> serial_packet.h:77</div></div>
<div class="ttc" id="group__packet_html_a3496667f52b5f8cd8e34381108268e0a"><div class="ttname"><a href="group__packet.html#a3496667f52b5f8cd8e34381108268e0a">serial_data_t::isAckAbortNeeded</a></div><div class="ttdeci">bool isAckAbortNeeded</div><div class="ttdoc">True if next ACK should be ACK Abort. </div><div class="ttdef"><b>Definition:</b> serial_packet.h:131</div></div>
<div class="ttc" id="group__packet_html_ae9b2f6d232d100f9b461c7df295be3f7"><div class="ttname"><a href="group__packet.html#ae9b2f6d232d100f9b461c7df295be3f7">serial_data_t::framingPacket</a></div><div class="ttdeci">serial_framing_packet_t framingPacket</div><div class="ttdoc">Buffer for outgoing packet. </div><div class="ttdef"><b>Definition:</b> serial_packet.h:126</div></div>
<div class="ttc" id="group__packet_html_ga88407143978559f83d7115b86dc876be"><div class="ttname"><a href="group__packet.html#ga88407143978559f83d7115b86dc876be">serial_packet_queue_byte</a></div><div class="ttdeci">void serial_packet_queue_byte(uint8_t byte)</div><div class="ttdoc">Queues a byte received by the active peripheral. </div><div class="ttdef"><b>Definition:</b> serial_packet.c:110</div></div>
<div class="ttc" id="group__bl__core_html_unionstandard__version__t"><div class="ttname"><a href="group__bl__core.html#unionstandard__version__t">standard_version_t</a></div><div class="ttdoc">Structure of version property. </div><div class="ttdef"><b>Definition:</b> bootloader_common.h:168</div></div>
<div class="ttc" id="group__packet_html_ga2a8f13fe838021db8eeaf217ff17a9db"><div class="ttname"><a href="group__packet.html#ga2a8f13fe838021db8eeaf217ff17a9db">_serial_packet_mode</a></div><div class="ttdeci">_serial_packet_mode</div><div class="ttdoc">Packet state machine modes. </div><div class="ttdef"><b>Definition:</b> serial_packet.h:84</div></div>
<div class="ttc" id="group__packet_html_gab0420ede400b98b1c21a7a7713b57633"><div class="ttname"><a href="group__packet.html#gab0420ede400b98b1c21a7a7713b57633">serial_packet_send_sync</a></div><div class="ttdeci">status_t serial_packet_send_sync(uint8_t framingPacketType)</div><div class="ttdoc">Send a sync packet of the specified type. </div><div class="ttdef"><b>Definition:</b> serial_packet.c:271</div></div>
<div class="ttc" id="group__packet_html_ga012b8bb615153c433c06843e404084b0"><div class="ttname"><a href="group__packet.html#ga012b8bb615153c433c06843e404084b0">_serial_protocol_version_constants</a></div><div class="ttdeci">_serial_protocol_version_constants</div><div class="ttdoc">Version constants for serial framing protocol. </div><div class="ttdef"><b>Definition:</b> serial_packet.h:47</div></div>
<div class="ttc" id="group__packet_html_structserial__data__t"><div class="ttname"><a href="group__packet.html#structserial__data__t">serial_data_t</a></div><div class="ttdoc">Format of global context data. </div><div class="ttdef"><b>Definition:</b> serial_packet.h:122</div></div>
<div class="ttc" id="group__packet_html_af86bc430f5b8c737809e0e3baae4ecea"><div class="ttname"><a href="group__packet.html#af86bc430f5b8c737809e0e3baae4ecea">ping_response_t::options</a></div><div class="ttdeci">uint16_t options</div><div class="ttdoc">Serial framing protocol options bitfield. </div><div class="ttdef"><b>Definition:</b> serial_packet.h:140</div></div>
<div class="ttc" id="group__packet_html_ab4c033cfd9a05c4c5c8688fcb22f88bc"><div class="ttname"><a href="group__packet.html#ab4c033cfd9a05c4c5c8688fcb22f88bc">framing_header_t::startByte</a></div><div class="ttdeci">uint8_t startByte</div><div class="ttdoc">#kFramingPacketStartByte </div><div class="ttdef"><b>Definition:</b> serial_packet.h:94</div></div>
<div class="ttc" id="group__packet_html_a394c0a96243ccf6fa1a0e19fe956cd33"><div class="ttname"><a href="group__packet.html#a394c0a96243ccf6fa1a0e19fe956cd33">serial_data_t::isBackToBackWrite</a></div><div class="ttdeci">bool isBackToBackWrite</div><div class="ttdoc">True if executing back-to-back write. </div><div class="ttdef"><b>Definition:</b> serial_packet.h:130</div></div>
<div class="ttc" id="group__packet_html_ga7bcf4e62f6cbc2ab39c1666c1d5e752a"><div class="ttname"><a href="group__packet.html#ga7bcf4e62f6cbc2ab39c1666c1d5e752a">serial_packet_write</a></div><div class="ttdeci">status_t serial_packet_write(const peripheral_descriptor_t *self, const uint8_t *packet, uint32_t byteCount, packet_type_t packetType)</div><div class="ttdoc">Write packet using serial framing. </div><div class="ttdef"><b>Definition:</b> serial_packet.c:195</div></div>
<div class="ttc" id="group__packet_html_structping__response__t"><div class="ttname"><a href="group__packet.html#structping__response__t">ping_response_t</a></div><div class="ttdoc">Serial ping response format. </div><div class="ttdef"><b>Definition:</b> serial_packet.h:137</div></div>
<div class="ttc" id="group__packet_html_structframing__sync__packet__t"><div class="ttname"><a href="group__packet.html#structframing__sync__packet__t">framing_sync_packet_t</a></div><div class="ttdoc">Serial framing sync packet. </div><div class="ttdef"><b>Definition:</b> serial_packet.h:99</div></div>
<div class="ttc" id="group__packet_html_structframing__header__t"><div class="ttname"><a href="group__packet.html#structframing__header__t">framing_header_t</a></div><div class="ttdoc">Serial framing header. </div><div class="ttdef"><b>Definition:</b> serial_packet.h:92</div></div>
<div class="ttc" id="group__packet_html_ga68e805a1882eb220f1ddd9a08c26030b"><div class="ttname"><a href="group__packet.html#ga68e805a1882eb220f1ddd9a08c26030b">serial_packet_finalize</a></div><div class="ttdeci">status_t serial_packet_finalize(const peripheral_descriptor_t *self)</div><div class="ttdoc">Finalize. </div><div class="ttdef"><b>Definition:</b> serial_packet.c:123</div></div>
<div class="ttc" id="group__packet_html_structserial__framing__packet__t"><div class="ttname"><a href="group__packet.html#structserial__framing__packet__t">serial_framing_packet_t</a></div><div class="ttdoc">Framing packet with data area. </div><div class="ttdef"><b>Definition:</b> serial_packet.h:115</div></div>
<div class="ttc" id="group__packet_html_a4438e0df9f58b1861feb3fc659f52534"><div class="ttname"><a href="group__packet.html#a4438e0df9f58b1861feb3fc659f52534">framing_data_packet_t::crc16</a></div><div class="ttdeci">uint16_t crc16</div><div class="ttdoc">CRC-16 of data packet header and data. </div><div class="ttdef"><b>Definition:</b> serial_packet.h:110</div></div>
<div class="ttc" id="group__packet_html_gga2c66f7e3d2dacb6bf4f217f66e60ed00ad24537294d9e3209afa42a1ee7081f4d"><div class="ttname"><a href="group__packet.html#gga2c66f7e3d2dacb6bf4f217f66e60ed00ad24537294d9e3209afa42a1ee7081f4d">kDefaultByteReadTimeoutMs</a></div><div class="ttdoc">Default value for receiving 1 byte timeout. </div><div class="ttdef"><b>Definition:</b> serial_packet.h:72</div></div>
<div class="ttc" id="group__packet_html_af0714a84f43a75ea5ed6219503f35df8"><div class="ttname"><a href="group__packet.html#af0714a84f43a75ea5ed6219503f35df8">framing_sync_packet_t::header</a></div><div class="ttdeci">framing_header_t header</div><div class="ttdoc">Framing packet header. </div><div class="ttdef"><b>Definition:</b> serial_packet.h:101</div></div>
<div class="ttc" id="group__ksdk__common_html_gaaabdaf7ee58ca7269bd4bf24efcde092"><div class="ttname"><a href="group__ksdk__common.html#gaaabdaf7ee58ca7269bd4bf24efcde092">status_t</a></div><div class="ttdeci">int32_t status_t</div><div class="ttdoc">Type used for all status and error return values. </div><div class="ttdef"><b>Definition:</b> fsl_common.h:121</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_4c1d7596aae66359654516e3185e0009.html">packet</a></li><li class="navelem"><b>serial_packet.h</b></li>
    <li class="footer">Generated on Mon Mar 7 2016 16:48:23 for Kinetis Bootloader by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.11 </li>
  </ul>
</div>
</body>
</html>
